package com.guochenglang.www.service;

import com.guochenglang.www.pojo.User;

import java.lang.reflect.InvocationTargetException;
import java.security.NoSuchAlgorithmException;
import java.sql.SQLException;

/**
 * @author GuoChenglang
 */
public interface LogInService {
    /**
     * 登录获得user对象
     *
     * @param user 登录信息
     * @return user对象
     * @throws SQLException              sql异常
     * @throws IllegalAccessException    非法访问异常
     * @throws InstantiationException    实现异常
     * @throws InterruptedException      断点异常
     * @throws NoSuchAlgorithmException  没有元素异常
     */
    User logIn(User user) throws SQLException, IllegalAccessException, InstantiationException, InterruptedException, NoSuchAlgorithmException;
}
